#pragma once
#include <iostream>
#include <string>
using namespace std;
class HttpServer
{
public:
    HttpServer() {}
    ~HttpServer() {}
    string HandlerHttpRequest(string req)
    {
        cout << "-------------------获得了一个HTTP请求--------------" << endl;
        cout << req;
        string responce = "HTTP/1.0 200 OK\r\n";
        responce += "\r\n";
        responce += "<html><body><h1>Hello world</h1></body></html>";
        return responce;
    }

private:
};